package org.ovirt.microvirt.beans.events;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import org.ovirt.microvirt.beans.situation.HostState;

@Entity
@DiscriminatorValue("hoststatus")
public class HostStatusChangeEvent extends HostEvent {

	private static final long serialVersionUID = -6056469879260309804L;
	@Column(name="oldstate")
	HostState oldstate;
	@Column(name="newstate")
	HostState newstate;
	public HostState getOldstate() {
		return oldstate;
	}
	public void setOldstate(HostState oldstate) {
		this.oldstate = oldstate;
	}
	public HostState getNewstate() {
		return newstate;
	}
	public void setNewstate(HostState newstate) {
		this.newstate = newstate;
	}

}
